export function buildTimerPlugins(){
    return {
        name:"build-time",
        buildStart(){
            this.startTime = Date.now()
            console.log('打包开始------------')
                   
        },
        closeBundle(){
            // 构建成功，结束的时候
            const timeDiff = Date.now() - this.startTime
            console.log(`结束时间:${timeDiff}ms`)
            console.log('打包结束------------')
        }
    }
}